package com.shop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shop.pojo.Manager;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface ManagerMapper extends BaseMapper<Manager> {
    long findCountByManagerId(Integer id);

    String findRoleNameByManagerId(Integer id);

    Integer selectRoleIdByManagerId(Integer id);

    void updateRoleAndManager(Integer id, Integer roleId);

    void insertRoleAndManager(Integer id, Integer roleId);

    void deleteRoleAndManager(Integer id);
}
